Fix or silence pylint warnings in test_lint_free_pylint test#330
Fix or silence pylint warnings in test_lint_free_pylint test#330juliangilbey wants to merge 2 commits intopython-lsp:developfrom
test_lint_free_pylint test#330Conversation
test_lint_free_pylint test
|
OK, that PR failed the CI tests, but I haven't got a clue what's gone wrong - the diagnostics don't give enough information to debug it. So I'm going to push a further commit to this PR to get some information... |
|
OK, I've submitted #334 to allow this test to not crash-and-burn, but I'm a little stumped now. On my clean chroot, the test crashes if I don't include the Thoughts would be appreciated! |
|
OK, I think I've found the solution: Debian's pylint has slightly different defaults to the PyPI version of pylint (as installed via pip). I have no idea why. But the key differences, regarding this PR, are that Debian disables So I suggest closing this PR now, as it is not necessary for GitHub CI (and it seems hard to resolve cleanly without introducing a local pylintrc file). |
Yep, thanks for your help with that.
Ok, closing then. |
Building 1.7.0 for Debian, two tests failed:
test/plugins/test_pylint_lint.py::test_lint_free_pylintandtest_per_file_caching, first with the outputand once I'd fixed that, then with the output
This patch addresses both of these two failures; the first by changing
wstowkspand the second by disabling this pylint warning (as there's no (public) accessor method for the_endpointmember.The thing I really don't understand, though, is how this test passes on the GitHub CI system! I'm using clean chroot and lxc containers to run the tests with a completely vanilla pylint 2.15.9 installation, just as GitHub CI is doing.